<?php
/**
 * Created by PhpStorm.
 * User: Rei
 * Date: 16/4/30
 * Time: 22:54
 * Mail: rei@king.moe
 */

namespace Admin\Controller;

use Think\Controller;

class SessionController extends Controller
{
    //验证登陆session
    public function _initialize()
    {
        if (!session('?id') || !session('?admin')) {
            $this->redirect('/Admin/Login');
        }
    }
}